<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MFixedPoint: include/MFixedPoint/Fp64f.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MFixedPoint
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('Fp64f_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Fp64f.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Fp64f_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//===============================================================================================//</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//====================================== HEADER GUARD ===========================================//</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//===============================================================================================//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#ifndef __cplusplus</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">    #error Please build with C++ compiler</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#ifndef MN_MFIXEDPOINT_FP64F_H</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#define MN_MFIXEDPOINT_FP64F_H</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemn.html">mn</a> {</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span>MFixedPoint {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keyword">template</span> &lt;u<span class="keywordtype">int</span>8_t p&gt; </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="namespacemn_1_1MFixedPoint.html#a0988ce50b74b3a3d29afee1b2847d468">   30</a></span>&#160;    <span class="keyword">inline</span> int64_t <a class="code" href="namespacemn_1_1MFixedPoint.html#a9b75474a75a4a836d66f94cfc06c78e4">FixMulF</a>(int64_t a, int64_t b)</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="comment">// Rule with fixed-point multiplication, you have</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <span class="comment">// to right-shift result by the precision.</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keywordflow">return</span> (a * b) &gt;&gt; p;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">template</span> &lt;u<span class="keywordtype">int</span>8_t p&gt; </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="namespacemn_1_1MFixedPoint.html#af205e513ccbc971f90a7eb5af09fb810">   41</a></span>&#160;    <span class="keyword">inline</span> int64_t <a class="code" href="namespacemn_1_1MFixedPoint.html#af205e513ccbc971f90a7eb5af09fb810">FixDiv</a>(int64_t a, int64_t b)</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    {</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="comment">// Rule with fixed-point division, have to left-shift numerator</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <span class="comment">// before dividing by denominator</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">return</span> (int64_t)(((a) &lt;&lt; p) / b);</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    }</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">template</span> &lt;u<span class="keywordtype">int</span>8_t p&gt;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="namespacemn_1_1MFixedPoint.html#ae248a47e795ebb30852522eb5bf556f9">   53</a></span>&#160;    int64_t <a class="code" href="namespacemn_1_1MFixedPoint.html#ae248a47e795ebb30852522eb5bf556f9">FloatToRawFix64</a>(<span class="keywordtype">float</span> f)</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keywordflow">return</span> (int64_t)(f * (1 &lt;&lt; p));</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    }</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    </div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">template</span> &lt;u<span class="keywordtype">int</span>8_t p&gt;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="namespacemn_1_1MFixedPoint.html#a350beaed6c200882a3c194ef6983b65a">   63</a></span>&#160;    int64_t <a class="code" href="namespacemn_1_1MFixedPoint.html#a350beaed6c200882a3c194ef6983b65a">DoubleToRawFix64</a>(<span class="keywordtype">double</span> f)</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    {</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="keywordflow">return</span> (int64_t)(f * (double)(1 &lt;&lt; p));</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    }</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classmn_1_1MFixedPoint_1_1Fp64f.html">   70</a></span>&#160;    <span class="keyword">template</span>&lt;u<span class="keywordtype">int</span>8_t p&gt; <span class="keyword">class </span><a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    {</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">   74</a></span>&#160;            int64_t <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="group__Constructors.html#ga0706f9e0c9d93b74a09654d1adbaf3ab">   80</a></span>&#160;            <a class="code" href="group__Constructors.html#ga0706f9e0c9d93b74a09654d1adbaf3ab">Fp64f</a>()</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            {</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                <span class="comment">// nothing</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            }</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="group__Constructors.html#ga8a310f9abe9a30ee9706d50940e44aab">   89</a></span>&#160;            <a class="code" href="group__Constructors.html#ga8a310f9abe9a30ee9706d50940e44aab">Fp64f</a>(int32_t i) :</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                rawVal((int64_t)i &lt;&lt; p)</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            {</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                <span class="comment">// nothing</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            }</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            </div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="group__Constructors.html#gab0ef00d1694097eab0d8ad0d59c0b226">   95</a></span>&#160;            <a class="code" href="group__Constructors.html#gab0ef00d1694097eab0d8ad0d59c0b226">Fp64f</a>(int64_t i) :</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                rawVal(i &lt;&lt; p)</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            {</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                <span class="comment">// nothing</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            }</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="group__Constructors.html#gaab31c5efe367072ad14c54ad81ce1a59">  101</a></span>&#160;            <a class="code" href="group__Constructors.html#gaab31c5efe367072ad14c54ad81ce1a59">Fp64f</a>(<span class="keywordtype">float</span> f) :</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                rawVal(<a class="code" href="namespacemn_1_1MFixedPoint.html#ae248a47e795ebb30852522eb5bf556f9">FloatToRawFix64</a>&lt;p&gt;(f))</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            {</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                <span class="comment">// nothing</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            }</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="group__Constructors.html#gafbfe25575017a8b37b3e06b8856cc55e">  106</a></span>&#160;            <a class="code" href="group__Constructors.html#gafbfe25575017a8b37b3e06b8856cc55e">Fp64f</a>(<span class="keywordtype">double</span> f) :</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                rawVal(<a class="code" href="namespacemn_1_1MFixedPoint.html#ae248a47e795ebb30852522eb5bf556f9">FloatToRawFix64</a>&lt;p&gt;((double)f))</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            {</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                <span class="comment">// nothing</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            }</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            </div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            </div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            </div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="group__Compound.html#ga20e0ed265db2635cdef2077da5a0e952">  120</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a>&amp; <a class="code" href="group__Compound.html#ga20e0ed265db2635cdef2077da5a0e952">operator += </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            {</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                rawVal += r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            }</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            </div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="group__Compound.html#ga08a01bf8fedc5095f3cc8df8ea241cd9">  128</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a>&amp; <a class="code" href="group__Compound.html#ga08a01bf8fedc5095f3cc8df8ea241cd9">operator -= </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            {</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                rawVal -= r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            }</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;            </div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="group__Compound.html#ga0fedf5d7d75b7acf61768aecf96a396c">  136</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a>&amp; <a class="code" href="group__Compound.html#ga0fedf5d7d75b7acf61768aecf96a396c">operator *= </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;            { </div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                rawVal = FixMulF&lt;p&gt;(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>, r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;            }</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;            </div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="group__Compound.html#ga2535eccb77db2a377889438f984835d3">  144</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a>&amp; <a class="code" href="group__Compound.html#ga2535eccb77db2a377889438f984835d3">operator /= </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;            { </div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                rawVal = FixDiv&lt;p&gt;(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>, r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>);</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;            }</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;            </div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="group__Compound.html#ga906c626f94756332aa6ec3b0971be9d4">  151</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a>&amp; <a class="code" href="group__Compound.html#ga906c626f94756332aa6ec3b0971be9d4">operator %= </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;            { </div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                rawVal = rawVal % r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            }</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            </div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            </div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;            </div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="group__Arithmetic.html#ga45ce63f644360ad5b91859f04f1da436">  163</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> <a class="code" href="group__Arithmetic.html#ga45ce63f644360ad5b91859f04f1da436">operator + </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            {</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> temp = *<span class="keyword">this</span>;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                temp += r;</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            }</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            </div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="group__Arithmetic.html#gac16ebea81f64da2b5034a3c5ce3ea2cc">  171</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> <a class="code" href="group__Arithmetic.html#gac16ebea81f64da2b5034a3c5ce3ea2cc">operator - </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            {</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> temp = *<span class="keyword">this</span>;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                temp -= r;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;            }</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            </div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="group__Arithmetic.html#gad86cf18e21380a47b15ddb5d83eb85b6">  179</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> <a class="code" href="group__Arithmetic.html#gad86cf18e21380a47b15ddb5d83eb85b6">operator * </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;            {</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> temp = *<span class="keyword">this</span>;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                temp *= r;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            }</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            </div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="group__Arithmetic.html#gaccc0ac9bc10dbba756d63e6e2f86bc99">  187</a></span>&#160;            <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> <a class="code" href="group__Arithmetic.html#gaccc0ac9bc10dbba756d63e6e2f86bc99">operator / </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;            {</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> temp = *<span class="keyword">this</span>;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                temp /= r;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;                <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;            }</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;            </div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="group__Arithmetic.html#gae3b66b0c12c62aafa7196ae43f7ed25a">  195</a></span>&#160;            <span class="keyword">const</span> <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> <a class="code" href="group__Arithmetic.html#gae3b66b0c12c62aafa7196ae43f7ed25a">operator % </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r) </div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;            {</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                <a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> temp = *<span class="keyword">this</span>;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;                temp %= r;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;            }</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            </div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            </div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;            </div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="group__Explicit.html#gab2322b90e7a2a798b13b0a126cebac85">  207</a></span>&#160;            <span class="keywordtype">bool</span> <a class="code" href="group__Explicit.html#gab2322b90e7a2a798b13b0a126cebac85">operator == </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)<span class="keyword"> const</span></div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="keyword">            </span>{</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;                <span class="keywordflow">return</span> rawVal == r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            }</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;            </div><div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="group__Explicit.html#ga65a57ebbd52ff09fc3430d29a72b770d">  212</a></span>&#160;            <span class="keywordtype">bool</span> <a class="code" href="group__Explicit.html#ga65a57ebbd52ff09fc3430d29a72b770d">operator != </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)<span class="keyword"> const</span></div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="keyword">            </span>{</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;                <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == r);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;            }</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;            </div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="group__Explicit.html#ga5ad34235d8103feab870cbca87b59860">  217</a></span>&#160;            <span class="keywordtype">bool</span> <a class="code" href="group__Explicit.html#ga5ad34235d8103feab870cbca87b59860">operator &lt;  </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)<span class="keyword"> const</span></div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="keyword">            </span>{</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;                <span class="keywordflow">return</span> rawVal &lt; r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;            }</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            </div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="group__Explicit.html#ga76a29ab8d61fb52d1118d608819d03b4">  222</a></span>&#160;            <span class="keywordtype">bool</span> <a class="code" href="group__Explicit.html#ga76a29ab8d61fb52d1118d608819d03b4">operator &gt;  </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)<span class="keyword"> const</span></div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="keyword">            </span>{</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                <span class="keywordflow">return</span> rawVal &gt; r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            }</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;            </div><div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="group__Explicit.html#gabe0fa95209aac031f03b2bf9f9f21cd8">  227</a></span>&#160;            <span class="keywordtype">bool</span> <a class="code" href="group__Explicit.html#gabe0fa95209aac031f03b2bf9f9f21cd8">operator &lt;= </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)<span class="keyword"> const</span></div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="keyword">            </span>{</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                <span class="keywordflow">return</span> rawVal &lt;= r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            }</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            </div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="group__Explicit.html#ga378722086ced419172b2415365d3ec8e">  232</a></span>&#160;            <span class="keywordtype">bool</span> <a class="code" href="group__Explicit.html#ga378722086ced419172b2415365d3ec8e">operator &gt;= </a>(<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html">Fp64f</a> r)<span class="keyword"> const</span></div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="keyword">            </span>{</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;                <span class="keywordflow">return</span> rawVal &gt;= r.<a class="code" href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">rawVal</a>;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            }</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;            </div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;            </div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;            </div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="group__Explicit.html#ga61ff7f1e2e2b97fc3b940fd997c51a61">  243</a></span>&#160;            <span class="keyword">operator</span> float() { </div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;                <span class="keywordflow">return</span> (<span class="keywordtype">float</span>)rawVal / (float)(1 &lt;&lt; p);</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            }</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;            </div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="group__Explicit.html#gaaeb72b02f43d01f3ea92f29044e8f92d">  249</a></span>&#160;            <span class="keyword">operator</span> double() { </div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                <span class="keywordflow">return</span> (<span class="keywordtype">double</span>)rawVal / (double)(1 &lt;&lt; p);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;            }</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;            </div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;            </div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="keyword">private</span>:</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;            </div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;            <span class="comment">// none</span></div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    };</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="comment">//===============================================================================================//</span></div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="comment">//======================================== GRAVEYARD ============================================//</span></div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="comment">//===============================================================================================//</span></div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    </div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <span class="comment">/*</span></div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="comment">    template &lt;uint8_t p&gt;</span></div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="comment">    float Fix64ToFloat(int64_t f)</span></div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="comment">    {</span></div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;<span class="comment">        return (float)f / (float)(1 &lt;&lt; p);</span></div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="comment">    }</span></div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;<span class="comment">    </span></div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="comment">    template &lt;uint8_t p&gt;</span></div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="comment">    double Fix64ToDouble(int64_t f)</span></div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="comment">    {</span></div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="comment">        return (double)f / (double)(1 &lt;&lt; p);</span></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<span class="comment">    }*/</span></div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;} <span class="comment">// namespace MFixedPoint</span></div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;} <span class="comment">// namesapce mn</span></div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;<span class="preprocessor">#endif // #ifndef MN_MFIXEDPOINT_FP64F_H</span></div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="comment">// EOF</span></div><div class="ttc" id="group__Explicit_html_ga378722086ced419172b2415365d3ec8e"><div class="ttname"><a href="group__Explicit.html#ga378722086ced419172b2415365d3ec8e">mn::MFixedPoint::Fp64f::operator&gt;=</a></div><div class="ttdeci">bool operator&gt;=(Fp64f r) const</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00232">Fp64f.hpp:232</a></div></div>
<div class="ttc" id="group__Arithmetic_html_gae3b66b0c12c62aafa7196ae43f7ed25a"><div class="ttname"><a href="group__Arithmetic.html#gae3b66b0c12c62aafa7196ae43f7ed25a">mn::MFixedPoint::Fp64f::operator%</a></div><div class="ttdeci">const Fp64f operator%(Fp64f r)</div><div class="ttdoc">Override for &amp;#39;&amp;#39;. Uses compound assignment operator. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00195">Fp64f.hpp:195</a></div></div>
<div class="ttc" id="group__Arithmetic_html_gac16ebea81f64da2b5034a3c5ce3ea2cc"><div class="ttname"><a href="group__Arithmetic.html#gac16ebea81f64da2b5034a3c5ce3ea2cc">mn::MFixedPoint::Fp64f::operator-</a></div><div class="ttdeci">Fp64f operator-(Fp64f r)</div><div class="ttdoc">Override for &amp;#39;-&amp;#39;. Uses compound assignment operator. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00171">Fp64f.hpp:171</a></div></div>
<div class="ttc" id="group__Compound_html_ga08a01bf8fedc5095f3cc8df8ea241cd9"><div class="ttname"><a href="group__Compound.html#ga08a01bf8fedc5095f3cc8df8ea241cd9">mn::MFixedPoint::Fp64f::operator-=</a></div><div class="ttdeci">Fp64f &amp; operator-=(Fp64f r)</div><div class="ttdoc">Override for &quot;-=&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00128">Fp64f.hpp:128</a></div></div>
<div class="ttc" id="group__Explicit_html_ga5ad34235d8103feab870cbca87b59860"><div class="ttname"><a href="group__Explicit.html#ga5ad34235d8103feab870cbca87b59860">mn::MFixedPoint::Fp64f::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(Fp64f r) const</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00217">Fp64f.hpp:217</a></div></div>
<div class="ttc" id="group__Explicit_html_gabe0fa95209aac031f03b2bf9f9f21cd8"><div class="ttname"><a href="group__Explicit.html#gabe0fa95209aac031f03b2bf9f9f21cd8">mn::MFixedPoint::Fp64f::operator&lt;=</a></div><div class="ttdeci">bool operator&lt;=(Fp64f r) const</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00227">Fp64f.hpp:227</a></div></div>
<div class="ttc" id="group__Arithmetic_html_ga45ce63f644360ad5b91859f04f1da436"><div class="ttname"><a href="group__Arithmetic.html#ga45ce63f644360ad5b91859f04f1da436">mn::MFixedPoint::Fp64f::operator+</a></div><div class="ttdeci">Fp64f operator+(Fp64f r)</div><div class="ttdoc">Override for &amp;#39;+&amp;#39;. Uses compound assignment operator. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00163">Fp64f.hpp:163</a></div></div>
<div class="ttc" id="namespacemn_html"><div class="ttname"><a href="namespacemn.html">mn</a></div><div class="ttdef"><b>Definition:</b> <a href="Fp32f_8cpp_source.html#l00025">Fp32f.cpp:25</a></div></div>
<div class="ttc" id="group__Explicit_html_ga76a29ab8d61fb52d1118d608819d03b4"><div class="ttname"><a href="group__Explicit.html#ga76a29ab8d61fb52d1118d608819d03b4">mn::MFixedPoint::Fp64f::operator&gt;</a></div><div class="ttdeci">bool operator&gt;(Fp64f r) const</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00222">Fp64f.hpp:222</a></div></div>
<div class="ttc" id="group__Constructors_html_ga0706f9e0c9d93b74a09654d1adbaf3ab"><div class="ttname"><a href="group__Constructors.html#ga0706f9e0c9d93b74a09654d1adbaf3ab">mn::MFixedPoint::Fp64f::Fp64f</a></div><div class="ttdeci">Fp64f()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00080">Fp64f.hpp:80</a></div></div>
<div class="ttc" id="group__Explicit_html_ga65a57ebbd52ff09fc3430d29a72b770d"><div class="ttname"><a href="group__Explicit.html#ga65a57ebbd52ff09fc3430d29a72b770d">mn::MFixedPoint::Fp64f::operator!=</a></div><div class="ttdeci">bool operator!=(Fp64f r) const</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00212">Fp64f.hpp:212</a></div></div>
<div class="ttc" id="classmn_1_1MFixedPoint_1_1Fp64f_html"><div class="ttname"><a href="classmn_1_1MFixedPoint_1_1Fp64f.html">mn::MFixedPoint::Fp64f</a></div><div class="ttdoc">64-bit fixed-point library. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00070">Fp64f.hpp:70</a></div></div>
<div class="ttc" id="group__Explicit_html_gab2322b90e7a2a798b13b0a126cebac85"><div class="ttname"><a href="group__Explicit.html#gab2322b90e7a2a798b13b0a126cebac85">mn::MFixedPoint::Fp64f::operator==</a></div><div class="ttdeci">bool operator==(Fp64f r) const</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00207">Fp64f.hpp:207</a></div></div>
<div class="ttc" id="group__Constructors_html_gab0ef00d1694097eab0d8ad0d59c0b226"><div class="ttname"><a href="group__Constructors.html#gab0ef00d1694097eab0d8ad0d59c0b226">mn::MFixedPoint::Fp64f::Fp64f</a></div><div class="ttdeci">Fp64f(int64_t i)</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00095">Fp64f.hpp:95</a></div></div>
<div class="ttc" id="group__Constructors_html_gafbfe25575017a8b37b3e06b8856cc55e"><div class="ttname"><a href="group__Constructors.html#gafbfe25575017a8b37b3e06b8856cc55e">mn::MFixedPoint::Fp64f::Fp64f</a></div><div class="ttdeci">Fp64f(double f)</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00106">Fp64f.hpp:106</a></div></div>
<div class="ttc" id="classmn_1_1MFixedPoint_1_1Fp64f_html_a7fcfb60b731e3efa1e05c40ae9c848e6"><div class="ttname"><a href="classmn_1_1MFixedPoint_1_1Fp64f.html#a7fcfb60b731e3efa1e05c40ae9c848e6">mn::MFixedPoint::Fp64f::rawVal</a></div><div class="ttdeci">int64_t rawVal</div><div class="ttdoc">The raw fixed-point value, stored as a int64. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00074">Fp64f.hpp:74</a></div></div>
<div class="ttc" id="group__Compound_html_ga20e0ed265db2635cdef2077da5a0e952"><div class="ttname"><a href="group__Compound.html#ga20e0ed265db2635cdef2077da5a0e952">mn::MFixedPoint::Fp64f::operator+=</a></div><div class="ttdeci">Fp64f &amp; operator+=(Fp64f r)</div><div class="ttdoc">Override for &quot;+=&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00120">Fp64f.hpp:120</a></div></div>
<div class="ttc" id="namespacemn_1_1MFixedPoint_html_ae248a47e795ebb30852522eb5bf556f9"><div class="ttname"><a href="namespacemn_1_1MFixedPoint.html#ae248a47e795ebb30852522eb5bf556f9">mn::MFixedPoint::FloatToRawFix64</a></div><div class="ttdeci">int64_t FloatToRawFix64(float f)</div><div class="ttdoc">Converts from float to a raw fixed-point number. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00053">Fp64f.hpp:53</a></div></div>
<div class="ttc" id="group__Compound_html_ga906c626f94756332aa6ec3b0971be9d4"><div class="ttname"><a href="group__Compound.html#ga906c626f94756332aa6ec3b0971be9d4">mn::MFixedPoint::Fp64f::operator%=</a></div><div class="ttdeci">Fp64f &amp; operator%=(Fp64f r)</div><div class="ttdoc">Override for &quot;%=&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00151">Fp64f.hpp:151</a></div></div>
<div class="ttc" id="group__Constructors_html_gaab31c5efe367072ad14c54ad81ce1a59"><div class="ttname"><a href="group__Constructors.html#gaab31c5efe367072ad14c54ad81ce1a59">mn::MFixedPoint::Fp64f::Fp64f</a></div><div class="ttdeci">Fp64f(float f)</div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00101">Fp64f.hpp:101</a></div></div>
<div class="ttc" id="namespacemn_1_1MFixedPoint_html_a350beaed6c200882a3c194ef6983b65a"><div class="ttname"><a href="namespacemn_1_1MFixedPoint.html#a350beaed6c200882a3c194ef6983b65a">mn::MFixedPoint::DoubleToRawFix64</a></div><div class="ttdeci">int64_t DoubleToRawFix64(double f)</div><div class="ttdoc">Converts from float to a raw fixed-point number. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00063">Fp64f.hpp:63</a></div></div>
<div class="ttc" id="namespacemn_1_1MFixedPoint_html_a9b75474a75a4a836d66f94cfc06c78e4"><div class="ttname"><a href="namespacemn_1_1MFixedPoint.html#a9b75474a75a4a836d66f94cfc06c78e4">mn::MFixedPoint::FixMulF</a></div><div class="ttdeci">int32_t FixMulF(int32_t a, int32_t b)</div><div class="ttdoc">Perform a fixed point multiplication without a 64-bit intermediate result. </div><div class="ttdef"><b>Definition:</b> <a href="Fp32f_8hpp_source.html#l00072">Fp32f.hpp:72</a></div></div>
<div class="ttc" id="group__Compound_html_ga2535eccb77db2a377889438f984835d3"><div class="ttname"><a href="group__Compound.html#ga2535eccb77db2a377889438f984835d3">mn::MFixedPoint::Fp64f::operator/=</a></div><div class="ttdeci">Fp64f &amp; operator/=(Fp64f r)</div><div class="ttdoc">Override for &quot;/=&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00144">Fp64f.hpp:144</a></div></div>
<div class="ttc" id="namespacemn_1_1MFixedPoint_html_af205e513ccbc971f90a7eb5af09fb810"><div class="ttname"><a href="namespacemn_1_1MFixedPoint.html#af205e513ccbc971f90a7eb5af09fb810">mn::MFixedPoint::FixDiv</a></div><div class="ttdeci">int64_t FixDiv(int64_t a, int64_t b)</div><div class="ttdoc">Perform a fixed point division without a 128-bit intermediate result. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00041">Fp64f.hpp:41</a></div></div>
<div class="ttc" id="group__Arithmetic_html_gaccc0ac9bc10dbba756d63e6e2f86bc99"><div class="ttname"><a href="group__Arithmetic.html#gaccc0ac9bc10dbba756d63e6e2f86bc99">mn::MFixedPoint::Fp64f::operator/</a></div><div class="ttdeci">Fp64f operator/(Fp64f r)</div><div class="ttdoc">Override for &amp;#39;/&amp;#39;. Uses compound assignment operator. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00187">Fp64f.hpp:187</a></div></div>
<div class="ttc" id="group__Compound_html_ga0fedf5d7d75b7acf61768aecf96a396c"><div class="ttname"><a href="group__Compound.html#ga0fedf5d7d75b7acf61768aecf96a396c">mn::MFixedPoint::Fp64f::operator*=</a></div><div class="ttdeci">Fp64f &amp; operator*=(Fp64f r)</div><div class="ttdoc">Override for &quot;*=&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00136">Fp64f.hpp:136</a></div></div>
<div class="ttc" id="group__Constructors_html_ga8a310f9abe9a30ee9706d50940e44aab"><div class="ttname"><a href="group__Constructors.html#ga8a310f9abe9a30ee9706d50940e44aab">mn::MFixedPoint::Fp64f::Fp64f</a></div><div class="ttdeci">Fp64f(int32_t i)</div><div class="ttdoc">Constructor taking a int32_t. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00089">Fp64f.hpp:89</a></div></div>
<div class="ttc" id="group__Arithmetic_html_gad86cf18e21380a47b15ddb5d83eb85b6"><div class="ttname"><a href="group__Arithmetic.html#gad86cf18e21380a47b15ddb5d83eb85b6">mn::MFixedPoint::Fp64f::operator*</a></div><div class="ttdeci">Fp64f operator*(Fp64f r)</div><div class="ttdoc">Override for &amp;#39;*&amp;#39;. Uses compound assignment operator. </div><div class="ttdef"><b>Definition:</b> <a href="Fp64f_8hpp_source.html#l00179">Fp64f.hpp:179</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_17c564e340042c6c14a6fa0922b115ee.html">MFixedPoint</a></li><li class="navelem"><a class="el" href="Fp64f_8hpp.html">Fp64f.hpp</a></li>
    <li class="footer">Generated on Wed Dec 13 2017 13:34:44 for MFixedPoint by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
